{foreach key=subpackage item=files from=$classleftindex}
{if $subpackage == ""}
<ul class="menu">
    {section name=files loop=$files}
    <li{if $subpackage != ""} style="margin-left: 10px"{/if} class="{if $files[files].is_interface}interface{else}{if $files[files].is_abstract}abstract-{/if}class{/if}">{if $files[files].link != ''}<a href="{$files[files].link}">{/if}{$files[files].title}{if $files[files].link != ''}</a>{/if}</li>
    {/section}
</ul>
{/if}
{/foreach}

{foreach key=subpackage item=files from=$classleftindex}
    {if $subpackage != ""}
    <h5>{$subpackage}</h5>
    <ul class="menu">
        {section name=files loop=$files}
        <li{if $subpackage != ""} style="margin-left: 10px"{/if} class="{if $files[files].is_interface}interface{else}{if $files[files].is_abstract}abstract-{/if}class{/if}">{if $files[files].link != ''}<a href="{$files[files].link}">{/if}{$files[files].title}{if $files[files].link != ''}</a>{/if}</li>
        {/section}
    </ul>
    {/if}
{/foreach}
